Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

CSG Equations

QuickDraw 3D provides constants for some common CSG equations. See "Constructive Solid Geometry" for more information on how CSG equations are determined.

typedef enum TQ3CSGEquation {
    kQ3CSGEquationAandB                             = (int) 0x88888888,
    kQ3CSGEquationAandnotB                          = 0x22222222,
    kQ3CSGEquationAanBonCad                         = 0x2F222F22,
    kQ3CSGEquationnotAandB                          = 0x44444444,
    kQ3CSGEquationnAaBorCanD                        = 0x74747474
} TQ3CSGEquation;

Constant descriptions

kQ3CSGEquationAandB
A    B . The renderer draws the intersection of object A and object B .
kQ3CSGEquationAandnotB
A   ¬ B . The renderer draws the portion of object A that lies outside of object B .
kQ3CSGEquationAanBonCad
( A   ¬ B )  (¬ C    D ). The renderer draws the portion of object A that lies outside of object B , and the portion of object D that lies outside of object C .
kQ3CSGEquationnotAandB
¬ A    B . The renderer draws the portion of object B that lies outside of object A .
kQ3CSGEquationnAaBorCanD
A    B )  ( C   ¬ D ). The renderer draws the portion of object B that lies outside of object A , and the portion of object C that lies outside of object D .

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |